package com.example.sequence.selfLinkedList;

public class ListNodeTest {
    public static void main(String[] args) {
        ListNode<String> myList = new ListNode<String>();
        myList.add("a");
        myList.add("b");
        myList.add("c");
        myList.add("d");
        myList.add("e");
        myList.add("f");
        System.out.println(myList.size());
        System.out.println("第三个元素是:" + myList.get(3));
        myList.remove(3);
        System.out.println("删除之后，第三个元素是:"+myList.get(3));

        System.out.println("-----------替换之后--------");

        myList.replace(1, "b11");
        System.out.println(myList.get(1));

    }
}
